SmartFTP FTP Library
ISSHConnection::Compressions Property

Contains an ordered list of supported compression methods. 

Default: { ftpSSHCompressionzlib, ftpSSHCompressionNone }

IDL
__property VARIANT* Compressions;

The compression algorithm is negotiated during the client/server handshake. It cannot be changed later. 

During the client/server handshake the client sends the list of supported methods. The server then selects the first one it supports. If the server does not support a method from the list the handshake fails.

Disable Compression

CComSafeArray<VARIANT> compressions(1);
authentications.SetAt(0, CComVariant(sfFTPLib::ftpSSHCompressionNone));
m_pConnection->Compressions = CComVariant(compressions);
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.